package org.springframework.demo7;

import org.springframework.core.PriorityOrdered;
import org.springframework.stereotype.Component;

/**
 * 秒杀时间的校验
 */
@Component
public class TimeVerify extends AbstarctOrderVerify implements PriorityOrdered {
	@Override
	public int getOrder() {
		return 100;
	}

	@Override
	public boolean verify() {
		System.out.println("是否在秒杀时间范围内");
		return true;
	}
}
